package com.sisqorap.puzzelalarm;

import com.sisqorap.Preferences;
import android.content.Context;

public class Settings {
	private Preferences pref;
	
	public Settings(Context packageContext){
		pref = new Preferences(packageContext);
	}

	public int getSnoozeTime(){
		return pref.getIntValue("snoozeTime", 5);
	}
	
	public void setSnoozeTime(short snoozeTime){
		pref.setIntValue("snoozeTime", snoozeTime);
	}
	
	public void setNumberOfPuzzlePieces(short pieces){
		pref.setIntValue("numPieces", pieces);
	}
	
	public int getNumberOfPuzzlePieces(){
		return pref.getIntValue("numPieces", 4);
	}
}
